{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">广告管理</li>
            {//<li class=""><a href="{:url('admin/adv/add')}">添加广告</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;">ID</th>
                        <th>缩略图</th>
                        <th>广告名称</th>
                        <th>广告位置</th>
                        <th>发布时间</th>
                        <th>备注</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="results" item="result"}
                    <tr>
                        <td>{$result['id']}</td>
                        <td><img src="{$result['advimage']}" width="120px" height="120px" /></td>
                        <td>{$result['title']}</td>
                        <td>{$result['name']}</td>
                        <td>{$result['create_time']|date="Y-m-d H:i:s",###}</td>
                        <td>{$result['remark']}</td>
                        <td>
                            <a href="{:url('admin/adv/edit',['id'=>$result['id']])}" class="layui-btn layui-btn-normal layui-btn-mini">编辑</a>
                            <a href="{:url('admin/adv/delete',['id'=>$result['id']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{/block}